package com.service;

import com.pojo.Page;
import com.pojo.Worker;

import java.util.List;

public interface  WorkerService {
    int addWorker(Worker w);

    int deleteWorkerById(long id);

    int updateWorker(Worker w);

    Worker queryById(long id);

    List<Worker> queryAllWorker();

    Worker queryByName(String text);

    public int countWorkers();

    //按id查询升序
    List<Worker> queryWorkerByIdUp(Page page);

    //按id查询降序
    List<Worker> queryWorkerByIdDown(Page page);

    //按姓名查询升序
    List<Worker> queryWorkerByNameUp(Page page);

    //按姓名查询降序
    List<Worker> queryWorkerByNameDown(Page page);

    List<Worker> queryWorkerByWorkageUp(Page page);

    List<Worker> queryWorkerByWorkageDown(Page page);

    void addWorker_login(Worker w);

    void deleteWorkerLoginById(Long id);

    void updateWorkerLogin(Worker w);
}
